<?php

require_once('foursquare_secrets.php'); 

$url = 'https://foursquare.com/oauth2/authenticate';
$url .= '?client_id=' . CLIENT_ID;
$url .= '&response_type=code';
$url .= '&redirect_uri=http://localhost/obscure-spire-7574/test/foursquare_callback.php';

// redirect
header('Location: ' . $url);
?>
